package lb03ansatztilo;

import java.util.Random;

public class StRNG extends RNG{
	
	private Random generator;

	public StRNG(long seed) {
		initGenerator(seed);
	}
	
	private void initGenerator(long seed) {
		setSeed(seed);
		this.generator = new Random(getSeed());
	}
	
	@Override
	protected long getNextRandomValue() {
		setRandomValue(generator.nextLong());
		return getRandomLong();
	}
	
	@Override
	protected void setSeed(long seed) {
		super.setSeed(seed);
	}
	
	
	@Override
	protected long getRandomLong() {
		return super.getRandomLong();
	}
	
}
